﻿@{
    ViewBag.Title = "增加课程";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<div>
    <div class="result-title">
        <h1 class="head-tietle">增加课程</h1>
    </div>
    @using (Html.BeginForm("AddCourse", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.AntiForgerySID()
        <table class="detail-table">
            <tr>
                <td class="row-title">一级分类</td>
                <td>
                    <select name="oneType" class="textbox w-2" id="lsOneType">
                        <option value="0">选择分类</option>
                        @foreach (var item in ViewBag.Types)
                        {
                            <option value="@item.ID">@item.TypeValue</option>
                        }
                    </select>
                </td>
            </tr>
            <tr>
                <td class="row-title">二级分类</td>
                <td>
                    <select name="CourseTypeID" class="textbox w-2" id="lsSecondType"></select>
                </td>
            </tr>
            <tr>
                <td class="row-title">标题</td>
                <td>
                    <input class="textbox w-3" name="Title" />
                </td>
            </tr>
            <tr>
                <td class="row-title">学分</td>
                <td>
                    <input class="textbox w-3" name="Credit" />
                </td>
            </tr>
            <tr>
                <td class="row-title">优先级</td>
                <td>
                    <input class="textbox w-3" name="Priority" />
                </td>
            </tr>
            <tr>
                <td class="row-title">
                    描述
                </td>
                <td>
                    <textarea class="textbox" style="height:100px;width:300px;" name="Description"></textarea>
                </td>
            </tr>
            <tr>
                <td class="row-title">
                    上传截图
                </td>
                <td>
                    <input type="file" name="file" id="file" class="textbox" />
                </td>
            </tr>
        </table>

        <p><input type="submit" value="增加" class="button blue" /></p>
    }
</div>
